import layout from '@/layout'
export default {
  path: '/employee',
  name: 'employee',
  component: layout,
  children: [{
    path: '',
    name: 'employee',
    component: () => import('@/views/employee'),
    meta: {
      title: '员工',
      icon: 'employee'
    }
  },
  {
    // MARK ? 标识可有可无，可以传id也可以选择不传，页面都能正确显示
    path: '/employee/detail/:id?',
    component: () => import('@/views/employee/detail.vue'),
    hidden: true,//  MARK 左侧菜单不显示
    meta: {
      title: '员工详情' // MARK 显示在导航的文本
    }
  }]
}
